package com.ruoyi.quartz.task;

import com.ruoyi.system.service.IDataSyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("userBehaviorTask")
public class UserBehaviorTask extends BaseTask {

    @Autowired
    private IDataSyncService dataSyncService;

    public void runTask() {
        try {
            dataSyncService.syncUserBehaviorData(100);
        } catch (Exception e) {
            log.error("UserBehaviorTask任务执行出错：", e);
        }
    }
}
